package com.nisure.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nisure.dao.CampaignDao;
import com.nisure.entity.CampaignEntity;
import com.nisure.info.CampaignTypeInfo;
import com.nisure.service.CampaignService;
import com.nisure.type.CampaignType;

@Service
public class CampaignServiceImpl implements CampaignService{

	@Autowired
	private CampaignDao campaignDao;

	@Override
	public int save(List<CampaignEntity> campaignEntity) {
		// TODO Auto-generated method stub
		return campaignDao.save(campaignEntity);
	}

	@Override
	public int saveAllCampaign(List<CampaignTypeInfo> campaignTypeInfo) {
		// TODO Auto-generated method stub
		return campaignDao.saveAllCampaign(campaignTypeInfo);
	}

	public int deleteAllCampaign(List<Long> userIdList){
		return campaignDao.deleteAllCampaign(userIdList);
	}
	

}
